import { useLaunch } from "@tarojs/taro";
import Taro, { Component } from "@tarojs/taro";
import "./app.scss";

function App({ children }) {
  useLaunch(() => {
    console.log("App launched.");
  });

  const config = {
    "route-plan": {
      version: "2.0.1",
      provider: "wx50b5593e81dd937a",
    },
  };

  // children 是将要会渲染的页面
  return children;
}

// class App extends Component {
//   config = {
//     plugins: {
//       myPlugin: {
//         version: "2.0.1",
//         provider: "wx50b5593e81dd937a",
//       },
//     },
//   };
//   render() {
//     return this.props.children;
//   }
// }

export default App;
